package com.mandao.tool;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author 蜗牛
 */
@SpringBootApplication
public class ToolApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ToolApplication.class, args);
        ConfigurableEnvironment environment = run.getEnvironment();
        String port = environment.getProperty("server.port");
        System.out.println("=============>START PORT " + port + " SUCCESS<=============");
    }

}
